package com.cc.demo.component.retry.remote;

import com.aizuda.snailjob.client.core.annotation.Retryable;
import com.aizuda.snailjob.client.core.retryer.RetryType;
import com.cc.demo.component.retry.SceneConstant;
import org.springframework.stereotype.Service;

@Service
public class RemoteRetryServiceImpl implements RemoteRetryService {
    @Override
    @Retryable(scene = SceneConstant.REMOTE_RETRY, retryStrategy = RetryType.ONLY_REMOTE)
    public void remoteRetry(String params) {
        System.out.println("remote retry 方法开始执行");
        throw new RuntimeException("remote retry 方法执行异常");
    }
}
